package trees.tree

abstract class AbstractTree(val name:String, rooted:Boolean,val weight:Double, accessNode:AbstractNode,treeList:List[Int],idList:List[Int]){

    def getLeafs():List[Int]

    override def toString() ={
        accessNode.toString()+";"
    }

//    def changeMutability()

  override def equals(t:Any):Boolean = t match {
      case t:AbstractTree =>
        name == t.name && weight == t.weight
      case _ => false
  }
}
